import { ObjCreate } from "../common/ObjCreate";
import { Language } from "../../../../extend/language/Language";
import { GTileList } from "../../../../com/mui/controls/GTileList";
import { NearbyGroupCellRenderer } from "./NearbyGroupCellRenderer";
import { ScrollBarDirection } from "../../../../fl/controls/ScrollBarDirection";
import { DataProvider } from "../../../../fl/data/DataProvider";
//class NearbyGroupsPanel
    
    export  class NearbyGroupsPanel /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.createChildren();
            return;
        }

        /* internal  */createChildren(): void
        {
            ObjCreate.createLabel(Language.getString(62047), 33, 0, 75, 20, flash.text.TextFormatAlign.LEFT, this, true, 16645577);
            ObjCreate.createLabel(Language.getString(62048), 107, 0, 75, 20, flash.text.TextFormatAlign.LEFT, this, true, 16645577);
            ObjCreate.createLabel(Language.getString(62049), 170, 0, 75, 20, flash.text.TextFormatAlign.LEFT, this, true, 16645577);
            ObjCreate.createLabel(Language.getString(62050), 205, 0, 75, 20, flash.text.TextFormatAlign.LEFT, this, true, 16645577);
            this._groupsTileList = new GTileList();
            this._groupsTileList.move(0, 21);
            this._groupsTileList.setSize(272, 324);
            this._groupsTileList.styleName = "TileList";
            this._groupsTileList.setStyle("cellRenderer", NearbyGroupCellRenderer);
            this._groupsTileList.direction = ScrollBarDirection.VERTICAL;
            this._groupsTileList.columnWidth = 260;
            this._groupsTileList.rowHeight = 38;
            this.addChild(this._groupsTileList);
            return;
        }

        public updateNearbyGroupList(arg1: Array<any>): void
        {
            this._groupsTileList.dataProvider = new DataProvider(arg1);
            return;
        }

        /* internal */ /* var */_groupsTileList: GTileList;
    }
